home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 146
/
(Vol 146) Jan 07 2012.iso
/
Games
/
super_fly.swf
/
scripts
/
frame_74
/
DoAction.as
Wrap
Text File
|
2012-01-07
|
2KB
|
85 lines
flyCount = "10";
bindex = "1";
index = "1";
while("2" >= bindex)
{
if(getProperty("/buzz" add index add "/fly1", _X) < mouse_x + "15" and mouse_x - "15" < getProperty("/buzz" add index add "/fly1", _X))
{
if(getProperty("/buzz" add index add "/fly1", _Y) < mouse_y + "15" and mouse_y - "15" < getProperty("/buzz" add index add "/fly1", _Y))
{
set("/dline:caught","3");
beeHit += "1";
tellTarget("/buzz" add index)
{
gotoAndPlay(1);
}
index = "11";
bindex = "3";
setProperty("/beePnt" add beeHit, _visible, "1");
}
else
{
bindex += "1";
}
}
else
{
bindex += "1";
}
}
if(index < "11")
{
if(getProperty("/dfly/fly1", _X) < mouse_x + "20" and mouse_x - "20" < getProperty("/dfly/fly1", _X))
{
if(getProperty("/dfly/fly1", _Y) < mouse_y + "20" and mouse_y - "20" < getProperty("/dfly/fly1", _Y))
{
set("/dline:caught","2");
score += "20";
index = "11";
tellTarget("/dfly")
{
gotoAndStop(11);
}
}
}
if(getProperty("/bfly/fly1", _X) < mouse_x + "30" and mouse_x - "30" < getProperty("/bfly/fly1", _X))
{
if(getProperty("/bfly", _Y) < mouse_y + "30" and mouse_y - "30" < getProperty("/bfly", _Y))
{
set("/dline:caught","4");
score += "30";
index = "11";
tellTarget("/bfly")
{
gotoAndStop(getProperty("/bfly", _currentframe));
}
}
}
}
while(flyCount >= index)
{
if(getProperty("/flyin" add index add "/fly1", _X) < mouse_x + "15" and mouse_x - "15" < getProperty("/flyin" add index add "/fly1", _X))
{
if(getProperty("/flyin" add index add "/fly1", _Y) < mouse_y + "15" and mouse_y - "15" < getProperty("/flyin" add index add "/fly1", _Y))
{
set("/dline:caught","1");
score += "10";
flyCaught += "1";
set("/dline:gotcha",index);
tellTarget("/flyin" add index)
{
gotoAndStop(11);
}
index = "11";
}
else
{
index += "1";
}
}
else
{
index += "1";
}
}